import request from '@/utils/request'

// 查询店铺流量剩余统计列表
export function listStatistics(data) {
  return request({
    url: '/sys/shopDataStatistics/selectAll',
    method: 'post',
    data:data
  })
}

// 查询店铺流量剩余统计详细
export function getStatistics(id) {
  return request({
    url: '/car/statistics/' + id,
    method: 'get'
  })
}

// 新增店铺流量剩余统计
export function addStatistics(data) {
  return request({
    url: '/car/statistics',
    method: 'post',
    data: data
  })
}

// 修改店铺流量剩余统计
export function updateStatistics(id,val) {
  return request({
    url: `/sys/shopDataStatistics/editResidual/${id}/${val}`,
    method: 'get'
  })
}

// 删除店铺流量剩余统计
export function delStatistics(id) {
  return request({
    url: '/sys/shopDataStatistics/delete',
    method: 'post',
    data:[id]
  })
}
